Setting up Web API Connectivity

I am a newbie to this sort of thing, but am trying to wor out how to setup webhooks/API calls from PagerDuty to another tool (Freshdesk)

I have the sample code needed to setup a ticket:

curl -v -u APIKEYGOESERE:X -H “Content-Type: application/json” -d ‘{ “description”: “Details about the issue…”, “subject”: “Support Needed…”, “email”: "tom@outerspace.com", “priority”: 1, “status”: 2, “cc_emails”: [“ram@freshdesk.com”,“diana@freshdesk.com”], “custom_fields” : { “category” : “Primary” } }’ -X POST ‘https://domainnamegoeshere.freshdesk.com/api/v2/tickets

But whwn i go to PagerDuty how does this trnspose to the options used in PagerDuty:

In Add Web Connection:

In the Worflow:

Or even in Custom Alert Actions etc.
It would be great if someone with a little knowledge can explain how to trnslate the curl into the PD setting and tell me what goes where

Thanks in advance

Hi Alan, glad to see you’re attempting to use our new Workflows, they provide awesome capabilities. You’re on the right track. In the URL you simply put your ‘https://domainnamegoeshere.freshdesk.com/api/v2/tickets’ endpoint. But you will also need to create the header, and you do that by creating a new connection (with the “manage connections” link).

I would suggest using webhook.site as a endpoint destination to test your configuration and once you have it working send it to the freshdesk endpoint.

Thanks - thats really useful, and have configured it to send to webhook.site - but how do I transpose that to Freshdesk - they are asking for an authorization key which in the sample code curls code is here:

curl -v -u APIKEYGOESERE:X -H “Content-Type: application/json” -d ‘{ “description”: “Details about the issue…”, “subject”: “Support Needed…”, “email”: "tom@outerspace.com", “priority”: 1, “status”: 2, “cc_emails”: [“ram@freshdesk.com”,“diana@freshdesk.com”], “custom_fields” : { “category” : “Primary” } }’ -X POST ‘https://domainnamegoeshere.freshdesk.com/api/v2/tickets’

Which header name/value do I use in order to add this to the payload and which field do I put it in. in the web api integration?